<%@page import="dao.MngClass"%>
<%@page import="dao.CheckAccount"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
            MngClass mngClass = new MngClass();
            CheckAccount ck = new CheckAccount();
        %>
        <form action="updateFeedBack" method="get">
            <table>
                <strong>FeedBack ID : <%= request.getAttribute("feedback_id")%> </strong><br>            
                <input type="hidden" name="feedback_id" value="<%= request.getAttribute("feedback_id")%>"><br>
                <tr>
                    <td>Student</td>
                    <td><%= ck.getFullName(request.getAttribute("acc_id").toString())%> <input type="hidden" name="acc_id" value="<%= request.getAttribute("acc_id")%>"> </td>
                </tr>
                <tr>
                    <td>Question</td>
                    <td><%= request.getAttribute("question")%> <input type="hidden" name="question" value="<%= request.getAttribute("question")%>"> </td>
                </tr>
                <tr>
                    <td>Answer</td>
                    <td> <textarea cols="50" rows="5" name="answer" maxlength="1000"><%= request.getAttribute("answer")%></textarea></td> 
                </tr>
                <tr>
                    <td>Class</td>
                    <td><%= mngClass.getClassName(request.getAttribute("class_id").toString())%> <input type="hidden" name="class_id" value="<%= request.getAttribute("class_id")%>"> </td>
                </tr>                             
                <tr>
                    <td></td>
                    <td> <input type="submit" value="Answer"></td>
                </tr>
            </table>
        </form>
    </body>
</html>
